package demo2;






public class Test  {
    public static void main(String[] args) throws CloneNotSupportedException {
        Person person1 = new Person(10,"张三")  ;
        Person person2 = (Person) person1.clone();
        //会调用自己重写的toString 方法!
        //此时的克隆是浅克隆
        System.out.println(person1);
        System.out.println(person2);
       //怎样进行深克隆？





    }
}
